//package br.pucrio.inf.les.SPLAnalyser.impl.squidplugin.query;
//
//import java.util.List;
//
//import br.ufrn.dimap.ase.squid.core.facade.Query;
//import br.ufrn.dimap.ase.squid.core.models.squidmodel.Feature;
//import br.ufrn.dimap.ase.squid.core.models.squidmodel.SquidModel;
//import br.ufrn.dimap.ase.squid.core.models.squidmodel.Mapping;
//import br.ufrn.dimap.ase.squid.core.models.util.SquidModelContent;
//import br.ufrn.dimap.ase.squid.core.models.util.ModelContent;
//
////Retorna todas as entidades que dependem diretamente da feature.
//public class ImpactOfAChangeFeature implements Query {
//
//	private SquidModelContent analysisModelContent;
//	private ModelContent queryModelContent;
//	private SquidModel queryModel;
//	private String featureName;
//	
//	
//	public ImpactOfAChangeFeature(String featureName){
//		this.featureName = featureName;
//	}
//	
//	public SquidModel runQuery(SquidModel analysisModel) {
//		analysisModelContent = new SquidModelContent(analysisModel);
//		queryModelContent = new ModelContent();
//		query();
//		queryModel = queryModelContent.getAnalysisModel();
//		return queryModel;
//	}
//
//	private void query() {
//		Feature feature = null;
//		feature = analysisModelContent.findFeature(featureName);
//		
//		List<Mapping> mappings = analysisModelContent.findMappingOf(feature);
//		for(Mapping map : mappings){
//			queryModelContent.addAsset(map.getAssets());
//			queryModelContent.addUseCase(map.getUseCases());
//		}
//	}
//
//	public String getName() {
//		return this.getClass().getSimpleName();
//	}
//}
